package com.hdoit.ares.logical.acc.dao.impl;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.acc.dao.IWithdrawParamDao;
import com.hdoit.ares.logical.acc.model.WithdrawParam;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年12月25日 16:40:18
 * @comment
 */
@Component
public class WithdrawParamDaoImpl extends SuperDao<WithdrawParam> implements IWithdrawParamDao{

	@Override
	public WithdrawParam queryModelByHelpCode(String helpCode) {
		IFinderExpression finderExpression = FinderExpressionFactory.createExpression();
		
		finderExpression.select("*")
						.from(WithdrawParam.class)
						.andWhere("helpCode = #{helpCode}")
						.setParam("helpCode", helpCode);

		return queryModel(finderExpression);
	}

}